using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NTTHAO.Common;
using NTTHAO.CommonWeb;
using NTTHAO.Web.BL.Category;

public partial class admin_webparts_Plug_ins_Category_CategoryList : System.Web.UI.UserControl
{
    public DataTable _List = null;

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            int siteID = WebGlobal.GetSite().ID;
            int langID = LanguageUtility.GetLanguageID();

            int actived = Context.User.Identity.Name.Equals("admin", StringComparison.OrdinalIgnoreCase) ? -1 : 1;
            _List = Category.GetAll(siteID, langID, actived);
        }
        catch (Exception)
        { }
    }
}
